package com.yixing.tech.common.vo.s8;

import com.yixing.tech.common.base.BaseVO;
import com.yixing.tech.common.enums.ProcessStatus;
import com.yixing.tech.common.vo.s3.UserVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author yixing tech
 * at 2022/9/2
 * describe：生产操作
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ProductOperationVO extends BaseVO implements Comparable<ProductOperationVO> {

    ProductOperationDefVO operation;
    String formObjEntityId;
    String userStrategy;
    String userValue;
    UserVO principal;
    ProductStageVO stage;
    ProductProcessVO process;
    ProductExecProcessVO execProcess;
    Integer sort;
    String requirements;
    String desc;
    ProcessStatus status;
    Date startTime;
    Date endTime;
    @Override
    public int compareTo(ProductOperationVO o) {
        return sort.compareTo(o.getSort());
    }
}
